.class Lcom/xingbook/park/activity/bx;
.super Landroid/view/View;


# instance fields
.field public a:I

.field public b:I

.field final synthetic c:Lcom/xingbook/park/activity/SearchAct;

.field private d:Landroid/graphics/Paint;

.field private e:[I


# direct methods
.method public constructor <init>(Lcom/xingbook/park/activity/SearchAct;Landroid/content/Context;F)V
    .locals 6

    const/16 v5, 0xa

    const/4 v4, 0x6

    const/4 v3, 0x3

    iput-object p1, p0, Lcom/xingbook/park/activity/bx;->c:Lcom/xingbook/park/activity/SearchAct;

    invoke-direct {p0, p2}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    const/4 v0, 0x7

    new-array v0, v0, [I

    const/4 v1, 0x0

    const/16 v2, 0x8

    aput v2, v0, v1

    const/4 v1, 0x2

    const/16 v2, 0xc

    aput v2, v0, v1

    const/16 v1, 0x10

    aput v1, v0, v3

    const/4 v1, 0x4

    aput v5, v0, v1

    const/4 v1, 0x5

    const/16 v2, 0x1a

    aput v2, v0, v1

    aput v5, v0, v4

    iput-object v0, p0, Lcom/xingbook/park/activity/bx;->e:[I

    const/high16 v0, 0x3f80

    cmpl-float v0, p3, v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/activity/bx;->e:[I

    array-length v0, v0

    add-int/lit8 v0, v0, -0x1

    :goto_0
    if-gez v0, :cond_1

    :cond_0
    iget-object v0, p0, Lcom/xingbook/park/activity/bx;->e:[I

    aget v0, v0, v4

    mul-int/lit8 v0, v0, 0x2

    iput v0, p0, Lcom/xingbook/park/activity/bx;->a:I

    iget-object v0, p0, Lcom/xingbook/park/activity/bx;->e:[I

    aget v0, v0, v3

    iget v1, p0, Lcom/xingbook/park/activity/bx;->a:I

    add-int/2addr v0, v1

    iput v0, p0, Lcom/xingbook/park/activity/bx;->b:I

    return-void

    :cond_1
    iget-object v1, p0, Lcom/xingbook/park/activity/bx;->e:[I

    iget-object v2, p0, Lcom/xingbook/park/activity/bx;->e:[I

    aget v2, v2, v0

    int-to-float v2, v2

    mul-float/2addr v2, p3

    invoke-static {v2}, Ljava/lang/Math;->round(F)I

    move-result v2

    aput v2, v1, v0

    add-int/lit8 v0, v0, -0x1

    goto :goto_0
.end method

.method static synthetic a(Lcom/xingbook/park/activity/bx;)[I
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/bx;->e:[I

    return-object v0
.end method


# virtual methods
.method protected onDraw(Landroid/graphics/Canvas;)V
    .locals 6

    iget-object v0, p0, Lcom/xingbook/park/activity/bx;->d:Landroid/graphics/Paint;

    if-nez v0, :cond_0

    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lcom/xingbook/park/activity/bx;->d:Landroid/graphics/Paint;

    :cond_0
    iget-object v0, p0, Lcom/xingbook/park/activity/bx;->e:[I

    const/4 v1, 0x0

    aget v0, v0, v1

    int-to-float v1, v0

    iget-object v0, p0, Lcom/xingbook/park/activity/bx;->e:[I

    const/4 v2, 0x1

    aget v0, v0, v2

    int-to-float v2, v0

    iget-object v0, p0, Lcom/xingbook/park/activity/bx;->e:[I

    const/4 v3, 0x2

    aget v0, v0, v3

    int-to-float v3, v0

    iget-object v0, p0, Lcom/xingbook/park/activity/bx;->e:[I

    const/4 v4, 0x3

    aget v0, v0, v4

    int-to-float v4, v0

    iget-object v5, p0, Lcom/xingbook/park/activity/bx;->d:Landroid/graphics/Paint;

    move-object v0, p1

    invoke-virtual/range {v0 .. v5}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    iget-object v0, p0, Lcom/xingbook/park/activity/bx;->e:[I

    const/4 v1, 0x4

    aget v0, v0, v1

    int-to-float v0, v0

    iget-object v1, p0, Lcom/xingbook/park/activity/bx;->e:[I

    const/4 v2, 0x5

    aget v1, v1, v2

    int-to-float v1, v1

    iget-object v2, p0, Lcom/xingbook/park/activity/bx;->e:[I

    const/4 v3, 0x6

    aget v2, v2, v3

    int-to-float v2, v2

    iget-object v3, p0, Lcom/xingbook/park/activity/bx;->d:Landroid/graphics/Paint;

    invoke-virtual {p1, v0, v1, v2, v3}, Landroid/graphics/Canvas;->drawCircle(FFFLandroid/graphics/Paint;)V

    return-void
.end method

.method public setBackgroundColor(I)V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/bx;->d:Landroid/graphics/Paint;

    if-nez v0, :cond_0

    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lcom/xingbook/park/activity/bx;->d:Landroid/graphics/Paint;

    :cond_0
    iget-object v0, p0, Lcom/xingbook/park/activity/bx;->d:Landroid/graphics/Paint;

    invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setColor(I)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/bx;->invalidate()V

    return-void
.end method
